package com.top.mall.entity

import com.module.lemlin.http.HttpResponseData
import com.top.mall.app.BaseApplication


data class GoodsListResponse(
    val data: MutableList<GoodsList> = mutableListOf()
) : HttpResponseData()

data class GoodsList(
    val active_param: ActiveParam,
    val active_price: String,
    val active_type: Int,
    var cart_id: Int,
    var cart_num: Int,
    val goods_name: String,
    val id: Int,
    val image: String,
    val price: String,
    val sales_sum: Int,
    val warehouse_goods: WarehouseGoods
)

data class ActiveParam(
    val active_count: String,
    val gift_num: String,
    val gift_rate: String,
    val group_rate: String,
    val group_time: String,
    val ladder_num: String,
    val purchase_num: String
)

//data class GoodsList(
//    val active_price: String,
//    val active_type: Int,
////    val cart: CartGoods,
//    val goods_name: String,
//    val id: Int,
//    val image: String,
//    val price: String,
//    val sales_sum: Int,
//    var cart_id: Int,
//    var cart_num: Int,
//    val warehouse_goods: WarehouseGoods
//)

data class CartGoods(
    var id: Int,
    var goods_num: Int
)

data class WarehouseGoods(
    val count: Int
)

data class GoodsLabelResponse(
    val data: MutableList<LabelGoods> = mutableListOf()
) : HttpResponseData()

data class LabelGoods(
    val content: Any,
    val desc: String,
    val id: Int,
    val title: String
)

data class GoodsRequest(
    var warehouse_no: String = BaseApplication.WAREHOUSE_NO,//仓库编号
    var active_type: Int? = null,//商品活动 0普通商品;1=拼团模块、2=限时抢购、3=天天特价、4=商城推荐、5=品牌特惠、6=疯狂折扣、7=买赠专场、8=阶梯价
    var cat_id: Int? = null,//分类ID
    var search: String? = null,//搜索关键字
    var service_id: Int? = null,//标签
    var page: Int = 1,//页数
    var rows: Int = 20,//条数
    var active_flash_sale_id: Int? = null,//促销列表ID
    var sort: String? = null,//排序字段
    var sort_asc: String? = null,//asc正序 desc 倒序
    var count: Int? = null//默认 0 = 全部; 1 = 有货
)

data class GoodsDetailsResponse(
    val data: GoodsDetails
) : HttpResponseData()

data class GoodsDetails(
    val active_flash_sale_id: Int,
    val active_gift_id: Int,
    val active_param: ActiveParam,
    val active_price: String,
    val active_type: Int,
    val alcohol_flg: Int,
    val brand: String,
    val goods_content: String,
    val goods_name: String,
    val id: Int,
    val image: String,
    val images: List<String>,
    val is_collect: Boolean,
    val item_no: String,
    val packages_count: String,
    val price: String,
    val sales_sum: Int,
    val storage_conditions: String,
    val unit_no: String,
    val unit_price: String,
    val video: String,
    val weight: Int
)